package com.kun.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 字符串工具类
 * Created by likun on 2016/12/30.
 */
public class StringUtil {

    /**
     * 返回日期字符串
     * @return
     */
    public static String getTimeString(){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        Date date=new Date();
        return sdf.format(date);
    }

    /**
     * 判断字符串是否为空
     * @param str
     * @return
     */
    public static boolean isEmpty(String str) {
        if (str==null||str.equals("")){
            return true;
        }else {
            return false;
        }
    }
}
